export function grad2rad(gradAngle: number){
    return gradAngle * Math.PI / 180;
}

export function rad2grad(radAngle: number){
    return radAngle * 180 / Math.PI;
}

export function calcRadiusPoints(angle: number, radius: number, cx: number, cy: number) {
    const x = cx + Math.sin(angle) * radius;
    const y = cy + Math.cos(angle) * radius;
    return {"x": x, "y": y};
}